home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue26 / tiptrix / Vinfo / UMAIN.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1997-08-24  |  667 b   |  43 lines

  1. unit UMain;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   Menus;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     MainMenu1: TMainMenu;
  12.     File1: TMenuItem;
  13.     Exit1: TMenuItem;
  14.     About1: TMenuItem;
  15.     procedure Exit1Click(Sender: TObject);
  16.     procedure About1Click(Sender: TObject);
  17.   private
  18.     { Private declarations }
  19.   public
  20.     { Public declarations }
  21.   end;
  22.  
  23. var
  24.   Form1: TForm1;
  25.  
  26. implementation
  27.  
  28. uses UAbout;
  29.  
  30. {$R *.DFM}
  31.  
  32. procedure TForm1.Exit1Click(Sender: TObject);
  33. begin
  34.   Close;
  35. end;
  36.  
  37. procedure TForm1.About1Click(Sender: TObject);
  38. begin
  39.   AboutBox.ShowModal;
  40. end;
  41.  
  42. end.
  43.